package week8;

public class Transport{
    protected String name;
    protected int speed;

    public Transport(String name,int speed){
        this.name=name;
        this.speed=speed;
    }
    public void showMoveMethed(){
        System.out.println("交通工具:"+name);
    }
    public void showBasicInfo(){
        System.out.println(name+"的速度为"+speed);
    }
}